package dc.connectionmanager.database;


public class OracleDBConnection extends DBConnection 
{
	
	public OracleDBConnection(String host, int nPort, String nUsername, String nPassword, String sid)
	{
		super(host, nPort, nUsername, nPassword, sid);
	}

	@Override
	public void initConnectionDriver() 
	{
		try
		{
			Class.forName("oracle.jdbc.driver.OracleDriver");
			String tmp = DBConnectionManager.OracleConnectionString(this.ipAdress, this.port, this.databaseName);
			this.conn = java.sql.DriverManager.getConnection(tmp, this.username, this.password);
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
	}


}
